import java.util.Arrays;
public class Main {
    public static void main(String[] args) {
        int[] arr = new int[5];
        for(int i = 0; i < 5; i++) {
            arr[i] = i;
        }
        arr = Arrays.copyOf(arr, 6);
        arr[5] = 5;
        System.out.println(Arrays.toString(arr));
    }
}


/*
public class Main {
    public static void main(String[] args) {
        int a = 5;
        System.out.println(a > 3 && a < 5);
        System.out.println(a > 3 || a < 5);
        System.out.println(!(a < 5));
    }
}*/
